package cn.zniot.so.transport.exception;

/**
 * 系统异常类
 * 
 */
public class NetException extends Exception {
	private static final long serialVersionUID = 4298579295883399739L;

	private int causeType = -1;

	public NetException(String message) {
		super(message);
	}

	public NetException(int causeType) {
		super(NetErrors.getExceptionCauseMsg(causeType));
		this.causeType = causeType;
	}

	public NetException(String message, Throwable e) {
		super(message, e);
	}

	public NetException(int causeType, Throwable e) {
		super(NetErrors.getExceptionCauseMsg(causeType), e);
		this.causeType = causeType;
	}

	public int getCauseType() {
		return causeType;
	}

}
